<html> <script language=javascript> setTimeout('window.location="../view/quit.php"',500) </script> </html>
<?php
header('Content-Type:text/html;charset=UTF-8');
include ('../control/mysql.php');
$id = $_POST['usernum'];
$reason=$_POST['reason'];
$sql = "insert into leaveapply values ('$id' , 'null','$reason')";
$res = mysql_query($sql);
if ($res == null) {
	echo  "你已提交过离职申请,请勿重复提交!";
}
else  echo "提交成功!";
echo '<a href="../view/quit.php">';
echo '点击此处返回</a>';
?>